#删除换行符

file = open("dxx.txt", encoding="utf-8")
file_w = open("dxx_n.txt", "w", encoding="utf-8")

ls = []

for i in file.readlines():
    line = i.strip("\n")
    ls.append(line)

for i in ls:
    file_w.write(i)

file_w.close()
